﻿<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="utf-8" %>

<table class="table-orderList">
    <thead>
    <td>时间</td>
    <td>充值金额(eth)</td>
    <td>eth转冷gas(eth)</td>
    <td>充值代币(非eth)</td>
    <td>代币转冷gas(eth)</td>
    </thead>
    <c:forEach var="item" items="${data}" varStatus="list">
        <tr>
            <td>${item.create_time }</td>
            <td>${item.eth_withdraw_account<=0?0:item.eth_withdraw_account}</td>
            <td>${item.eth_gas_account<=0?0:item.eth_gas_account }</td>
            <td>${item.other_withdraw_account<=0?0:item.other_withdraw_account }</td>
            <td>${item.other_gas_account<=0?0:item.other_gas_account }</td>
        </tr>
    </c:forEach>
    <tr>
        <td>总计：</td>
        <td>${total.eth_withdraw_account<=0?0:total.eth_withdraw_account}</td>
        <td>${total.eth_gas_account<=0?0:total.eth_gas_account }</td>
        <td>${total.other_withdraw_account<=0?0:total.other_withdraw_account }</td>
        <td>${total.other_gas_account<=0?0:total.other_gas_account }</td>
    </tr>
</table>

<c:choose>
    <c:when test="${!empty data}">
        ${page}
    </c:when>
    <c:otherwise>
        <div class="relative" style="height: 200px">
            <span>没有符合条件的数据，请尝试其他搜索条件</span>
        </div>
    </c:otherwise>
</c:choose>

